<template>
  <div id="app">
    <header id="header" class="mui-bar mui-bar-nav" >
			<h1 class="mui-title">{{$route.meta.title}}</h1>
		  <button class="mui-btn mui-btn-blue mui-btn-link mui-pull-right">
        <a href="#"  class="mui-icon-extra mui-icon-extra-custom"></a>
      </button>
      <button class="mui-action-back mui-btn mui-btn-blue mui-btn-link mui-btn-nav mui-pull-left" v-if = "$route.path !='/my' && $route.path !='/Home' && $route.path !='/message'&& $route.path !='/loginID'">
        <span class="mui-icon mui-icon-left-nav" @click="back"></span>
      </button>
    </header>
    <div class="content">
       <router-view></router-view>
    </div>
    <nav class="mui-bar mui-bar-tab" v-if = "$route.path !='/loginID'">
      <router-link class="mui-tab-item" to="/Home" tag="span">
        <span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">首页</span>
      </router-link>
      <router-link class="mui-tab-item" to="/message" tag="span">
        <span class="mui-icon mui-icon-email">
          <!-- <span class="mui-badge">9</span> -->
        </span>
				<span class="mui-tab-label">消息</span>
      </router-link>
      <router-link class="mui-tab-item" to="/my" tag="span">
        <span class="mui-icon mui-icon-person-filled"></span>
        <span class="mui-tab-label">我的</span>
      </router-link>
		</nav>
  </div>
</template>
<script>

// console.log(this.$router)
export default {
   data() {
      return {
        // pash:"",
      }
    },
    created(){
    },
    methods:{
      back(){
        window.history.back()
      }
    },
   watch:{
    $route(to,from){
      // this.pash = from.path
      // console.log( this.pash);
      },
      // 深度观察监听
      deep: true
  },
    // components(){
    // }, 
}
</script>
<style lang="less">
.content{
  margin-top: 48px;
}

</style>
